package org.qiyu.live.user.utils;

/**
 * @author: c
 * @date: 2024/3/12 14:26
 * @description:
 */

public class TagInfoUtils {

    /**
     * 判断是否存在某个标签
     *
     * @param tagInfo 用户当前的标签值
     * @param matchTag 被查询是否匹配的标签值
     * @return
     */
    public static boolean isContain(Long tagInfo, Long matchTag) {

        return tagInfo != null && matchTag != null && (tagInfo & matchTag) == matchTag && matchTag > 0;

    }
}
